<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function load(){
				let c = document.getElementById('myC');
				let ctx = c.getContext('2d');

				ctx.translate(80,80);
				for(let i=1; i<9; i++){
					ctx.save();
					ctx.translate(61*i, 0);
					ctx.fillStyle="rgb("+(30*i)+","+(255-30*i)+",255)";
					ctx.fillRect(0,0,60,60);
					ctx.restore();
				}
			}

			window.onload = function(){
				load();
			}
		</script>
	</head>
	<body>
		<canvas id="myC" style="border: 1px #000 solid;" width="800" height="450">
			你的浏览器不支持canvas元素！
		</canvas>
	<div><script language="javascript">

	</script></div></body>
</html>
